var TextArea = function(l,field){
	var inp;
	var lbl;
	var comp = $('<div/>');  
	var self = this;
	var f = field;
	this.hasField = true;
	
	var create = function(){
		inp = $('<textarea />');
		lbl = $('<label/>');
		if( l ){
			lbl.text(l + ":");
		}
		self.width("200px");
		self.height("200px");
		comp.addClass('textbox');
		var dvLbl = $('<div/>');
		dvLbl.append(lbl);
		var dvInp = $('<div/>');
		dvInp.append(inp);

		comp.append(dvLbl);
		comp.append(dvInp);
	};

	this.width = function(w){
		inp.css("width",w);
	};
	
	this.height = function(h){
		inp.css("height",h);
	};
	
	this.bind = function(e){
		$(e).append(comp);
	};
	
	this.value=function(v){
		if( v ){
			inp.val(v);
		}else{
			return inp.val();
		}
	};
	
	this.label = function(v){
		if( v ){
			lbl.text(v + ":");
		}else{
			return lbl.text();
		}
	};

	this.clear = function(){
		inp.val(null);
	};

	this.getField = function(){
		return f;
	};
	
	create();
};

